package com.owen.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.owen.liferay.jdo.domain.Class;
import com.owen.liferay.shared.ClassProxy;

@Service (Class.class)
public interface ClassRequest extends RequestContext {

	Request<List<ClassProxy>> returnAllClasses();
	
	Request<ClassProxy> findClass(long id);
	
	InstanceRequest<ClassProxy, Void> persist();
	
	InstanceRequest<ClassProxy, Void> remove();
	
	Request<Void> deleteRecord(long id);

}
